package com.woniu.car.service;

import com.woniu.car.common.ResponseEntity;
import com.woniu.car.exception.ParamException;
import com.woniu.car.exception.ServiceSException;
import com.woniu.car.domain.TProductComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.car.param.AddCommentByUserParam;
import com.woniu.car.param.DelCommentParam;
import com.woniu.car.param.GoodsCommentInsterParam;
import com.woniu.car.param.QueryGoodsCommentParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chestnuts
 * @since 2021-06-21
 */
public interface TProductCommentService extends IService<TProductComment> {

    ResponseEntity insertComment(GoodsCommentInsterParam goodsCommentInsterParam) throws ParamException;

    ResponseEntity addCommentByUser(AddCommentByUserParam addCommentByUserParam);

    ResponseEntity queryComment(QueryGoodsCommentParam queryGoodsCommentParam) throws ParamException, ServiceSException;

    ResponseEntity delComment(DelCommentParam delCommentParam);

}

